<div id="div_welcome" >
  <?php     Zend_Session::start();
	    $session = new Zend_Session_Namespace('account');
	    if (!isset($session->user) || $session->user->get("id") == '')
  {?>

  <script src="/static/js/jquery.cookie.js"></script>
  <script>
    $(document).ready(function(){
    });
  </script>
  <div id="div_home_login">
    <div class="input_for_home_login"><input class='gray' id="input_username" value="<?php echo isset($_COOKIE['username']) ? $_COOKIE['username'] : '';?>" tabindex="1" type="text"></div>
    <div class="input_for_home_login"><input id="home_login_submit" value="登 录" tabindex="3" type="button"></div>
    <div class='clear'></div>
    <div class="input_for_home_login"><input class='gray' id="input_passwd" value="<?php echo isset($_COOKIE['password']) ? $_COOKIE['password'] : '';?>" tabindex="2" type="password"></div>
    <div class="input_for_home_login">
      <label><input name="remember_me" tabindex="-1" id="input_remember_me" <?php echo isset($_COOKIE['remember_me']) && $_COOKIE['remember_me'] == 'on' ? 'checked':'';?> type="checkbox">记住我</label>
    </div>
    <div class='clear'></div>
  </div>
  <div id='login_vertical_line'></div>
  <div id="div_home_register" class="input_for_home_login left ui-corner-all">
    <a target="_blank" href="/account/register" class="button_register">免费注册</a>
  </div>
  <?php }else{?>
  
  您好，<?php echo $session->user->get("username") ? $session->user->get("username") : $session->user->get("email");?>
  <?php }?>
</div>
<div class='clear'></div>
